package com.akkainaction.router.group.actor.broadcast;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.typesafe.config.ConfigFactory;

public class TestBroadWorker {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys", ConfigFactory.load("broadcast-router.conf"));
        ActorRef masterBroadActor = system.actorOf(Props.create(MasterWorker.class), "masterBroadActor");
        masterBroadActor.tell("helloA", ActorRef.noSender());
        masterBroadActor.tell("helloB", ActorRef.noSender());
    }
}
